"use strict";

/* 日期格式检查 */
exports.dataFormatCheck = function (date) {
    let reg = /^\d{4}-\d{2}-\d{2}$/;

    return reg.test(date);
};

/* 数字检查 */
exports.isNumber = function (num) {
    return !isNaN(num);
}

/* 正整数检查 */
exports.isNotPositiveInt = function (num) {
  return !/(^[1-9]\d*$)/.test(num);
};